package com.psq.core.common.base

import android.os.Bundle
import androidx.annotation.LayoutRes

interface IPattern {

    @LayoutRes
    fun getLayoutResId(): Int


    fun initStatusBar()

    fun doBeforeView(savedInstanceState: Bundle?)

    fun initView(savedInstanceState: Bundle?)

    fun doAfterView(savedInstanceState: Bundle?)

    fun showProgressBar()

    fun hideProgressBar()

    fun isProgressBarCancelable() = true


    fun runOnUiThread(action: Runnable)

    fun runLifecycleOnUiThread(action: Runnable)


}